package com.clps.digital.service.impl;

import com.clps.digital.dao.SlideshowDao;
import com.clps.digital.model.entity.Slideshow;
import com.clps.digital.service.SlideshowService;

import java.util.List;

/**
 * @author: Chase
 * @date: 2024/9/3 10:44
 * @Version: 1.0
 * @description:
 */

public class SlideshowServiceImpl implements SlideshowService {

    private SlideshowDao slideshowDao;

    /**
     * 获取轮播图数据
     * @return
     */
    @Override
    public List<Slideshow> getSlideshowList() {
        return slideshowDao.getSlideshowList();
    }

    /**
     * 根据id获取轮播图数据
     * @param id
     * @return
     */
    @Override
    public Slideshow getSlideshowById(Long id) {
        return slideshowDao.getSlideshowById(id);
    }
}
